package com.ruihu.admin.module.business.tasknode.domain.dto;

import lombok.Data;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 新建 [ 缺陷类型配置 ]
 *
 * @author Tony
 * @version 1.0
 * @company 瑞虎（南京）信息技术有限公司
 * @copyright (c) 2018 瑞虎（南京）信息技术有限公司Inc. All rights reserved.
 * @date  2022-09-04 10:46:11
 * @since JDK1.8
 */
@Data
public class DefectTypeAddDTO {

    @NotNull(message = "任务节点id不能为空")
    @ApiModelProperty("任务环节ID")
    private Long taskNodeId;

    @ApiModelProperty("缺陷名称")
    @NotNull(message = "缺陷名称不能为空")
    private String defectName;

    @ApiModelProperty("描述")
    @Length(max = 200, message = "描述最多200个字符")
    private String remark;

    @ApiModelProperty("乐观锁")
    private Integer revision;

    @ApiModelProperty("创建人")
    private Integer createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新人")
    private Integer updateBy;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


}
